﻿import My3D.BitmapMaterial;
import My3D.UVPoint;
dynamic class My3D.TestureInfo {
	//--------------------------------------------------------------------------------------
	//																					public
	public var bitmapMaterial:BitmapMaterial;
	public var testureOnFace:Boolean = false;
	public var backGroundColor:Number = 0x999999;
	public var backGroundAlpha:Number = 50;
	
	public var lineThickness:Number = 0;
	public var lineColor:Number = 0x222222;
	public var lineAlpha:Number = 80;
	
	public var UVpointA:UVPoint;
	public var UVpointB:UVPoint;
	public var UVpointC:UVPoint;
	
	public var UVPointOffset:Number = 0;
	//--------------------------------------------------------------------------------------
	//																					function
	public function TestureInfo() {
		UVpointA = new UVPoint();
		UVpointB = new UVPoint();
		UVpointC = new UVPoint();
	}
	public static function copy(TInfoSrc:TestureInfo, TinfoDis:TestureInfo) {
		TinfoDis.bitmapMaterial =	TInfoSrc.bitmapMaterial;
		TinfoDis.testureOnFace	=	TInfoSrc.testureOnFace;
		TinfoDis.backGroundColor =	TInfoSrc.backGroundColor;
		TinfoDis.backGroundAlpha =	TInfoSrc.backGroundAlpha;
		TinfoDis.lineThickness	=	TInfoSrc.lineThickness;
		TinfoDis.lineColor		=	TInfoSrc.lineColor;
		TinfoDis.lineAlpha		=	TInfoSrc.lineAlpha;
		TinfoDis.UVpointA.U		=	TInfoSrc.UVpointA.U;
		TinfoDis.UVpointA.V		=	TInfoSrc.UVpointA.V;
		                                    
		TinfoDis.UVpointB.U		=	TInfoSrc.UVpointB.U;
		TinfoDis.UVpointB.V		=	TInfoSrc.UVpointB.V;
		                                    
		TinfoDis.UVpointC.U		=	TInfoSrc.UVpointC.U;
		TinfoDis.UVpointC.V		=	TInfoSrc.UVpointC.V;
	}                                   
}